package cn.ipenta.blockchain;

import hprose.client.HproseHttpClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author ipenta
 * @ClassName: BlockChainConfig
 * @Description: TODO
 * @date 2017-09-28 下午2:17
 */
@Component
public class BlockChainBeanRegister {

	@Value("${blockchain.url}")
	String url;

	@Bean
	public HproseHttpClient createHproseClient() {
		return new HproseHttpClient(url);

	}
}
